<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>发送消息到 ESP32</title>
</head>
<body>
    <button onclick="sendMessage()">发送消息</button>
    <script>
        function sendMessage() {
            // 使用 Ajax 发送请求到服务器
            var xhr = new XMLHttpRequest();
            xhr.open("POST", "/send-message", true);
            xhr.send();
        }
    </script>
</body>
</html>
